package com.fanh.service.impl;


import com.fanh.common.util.CommonUtil;
import com.fanh.mapper.GuideFeedbackMapper;
import com.fanh.model.GuideFeedback;
import com.fanh.service.GuideFeedbackService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;


@Service("guideFeedbackService")
public class GuideFeedbackServiceImpl implements GuideFeedbackService {

    private static final Logger LOGGER = LoggerFactory.getLogger(GuideFeedbackServiceImpl.class);

    @Autowired
    private GuideFeedbackMapper guideFeedbackMapper;

    @Override
    public int add(GuideFeedback guideFeedback) {
        guideFeedback.setCreateDate(new Date());
        guideFeedback.setId(CommonUtil.uuid());
        return guideFeedbackMapper.insert(guideFeedback);
    }
}
